package day02;

import java.util.Scanner;

public class ScannerDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入年龄");
        int age=scan.nextInt();
        System.out.println("请输入商品价格");
        double price= scan.nextDouble();
        System.out.println("请输入购买数量");
        int salary=scan.nextInt();


        System.out.println("您的年龄是："+age);
        System.out.println("您所购买的商品数量是："+salary);
        System.out.println("您所购买的商品总价为："+price*salary);
    }
}
